{% extends 'index.html' %}

{% block page-content %}
    <div class="container">
        <h3>学员报名</h3>
        <form class="form-horizontal col-lg-6" role="form" method="post">{% csrf_token %}
            <span style="color: red;">{{ enroll_form.errors }}</span>

                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">客户:</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="customer_obj" value="{{ customer_obj }}" disabled>
                    </div>
                  </div>
                {% for field in enroll_form %}

                  <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">{{ field.label }}:</label>
                    <div class="col-sm-9">
                        {{ field }}
                    </div>
                  </div>
                {% endfor %}
            <input type="submit" class="btn btn-info pull-right" value="下一步">
        </form>
        <div class="row form-horizontal col-lg-6">
            <ul>
                {% for k,v in msgs.items %}
                <li>{{ k }}:{{ v }}</li>
                {% endfor %}
            </ul>
        </div>
    </div>




{% endblock %}